package com.xhwl.logistics.service.cent;

import com.xhwl.common.dto.cent.sdata.RequestHeadDTO;
import com.xhwl.common.pojo.cent.sdata.Account;
import com.xhwl.common.pojo.cent.sdata.Project;
import com.xhwl.common.query.cent.sdata.ProjectQuery;
import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * @description: 项目管理
 * @author: lianghz
 * @create: 2020-11-25
 **/
//@FeignClient(value = "cent-data-core")
public interface IProjectService {

    /**
     * 查询项目列表
     *
     * @param projectQuery
     * @param requestHeadDTO
     * @return
     */
    @RequestLine(value = "POST /project-service/list")
    List<Project> list(@Param("projectQuery") ProjectQuery projectQuery, @Param("requestHeadDTO") RequestHeadDTO requestHeadDTO);

    /**
     * 获取某个项目
     *
     * @param projectQuery
     * @param account
     * @return
     */
    @RequestLine(value = "POST /project-service/get-one")
    Project getOne(@Param("projectQuery") ProjectQuery projectQuery, @Param("account") Account account);

}
